home *** CD-ROM | disk | FTP | other *** search
- /* Globals.h */
- /* Created 01/01/95 12:01 PM by AppMaker */
-
- #ifndef _H_Globals
- #define _H_Globals
-
- typedef struct {
- /* Standard fields: */
- TEHandle text;
- ControlHandle vScroll;
- ControlHandle hScroll;
- short fileNum;
- Boolean dirty;
- StringHandle filename;
- enum {noWindow, WMainWindow} windowKind;
- Handle witlHandle; /* Window itemlist resource */
- Handle wictHandle; /* Window item color table resource */
-
- /* Application-specific fields: */
- /* for MainWindow: */
- ListHandle RemindersHandle;
- short RemindersChoice;
- ControlHandle AddHandle;
- ControlHandle EditHandle;
- ControlHandle DeleteHandle;
-
-
- } WinInfoRec, *WinInfoPtr;
-
- typedef struct {
- Boolean hasGestalt; /* has Gestalt manager */
- Boolean hasWNE; /* has WaitNextEvent */
- Boolean hasColorQD; /* has Color QuickDraw */
- Boolean hasAppleEvents; /* has Apple Events */
- Boolean hasEditionMgr; /* has Edition Manager */
- } SysConfigRec;
-
- /* Standard vars: */
- extern Boolean quittingTime;
- extern EventRecord curEvent;
- extern WindowPtr curWindow;
- extern WinInfoPtr cur;
- extern Boolean inBackground;
- extern SysConfigRec sysConfig;
-
- /* Application-specific vars: */
-
- /*----------*/
- void InitGlobals (void);
- void SetInfo (WindowPtr window);
- void SetNewInfo (WindowPtr window);
- void DiscardInfo (WindowPtr window);
-
- #endif /* _H_Globals */
-
- /* Globals */
-